<layout name="master"/>
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
    <li><a href="#">品牌</a></li>
    <li><a href="#">品牌管理</a></li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">品牌管理</h3>
</div>
<div class="row">
    <div class="col-sm-12">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">品牌列表</header>
            <div class="panel-body">
                <form action="{:U('Common/sort')}" method='post'>
                    <table class="table table-bordered table-hover">
                        <thead>
                        <tr>
                            <th>品牌ID</th>
                            <th>品牌名称</th>
                            <th>LOGO</th>
                            <th>排序</th>
                            <th>是否热门</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <foreach name='brandData' item='v'>
                            <!--<?php dump($v) ?>-->
                            <tr class="info">
                                <td>{$v.bid}</td>
                                <td>{$v.bname}</td>
                                <td>
                                    <img style="width: 50px;"src="__ROOT__/Uploads/{$v.logo}"alt="" />
                                </td>
                                <td>
                                    <input type="text" name='{$v.bid}' value='{$v.sort}'/>
                                </td>
                                <td>
                                    <if condition='$v["ishot"]'>是</if>
                                </td>
                                <td>
                                    <a href="{:U('brand/add', array('bid' => $v['bid']))}" class="btn btn-info"><i class="icon-pencil icon-white"></i>修改</a>
                                    <a href="{:U('brand/del', array('bid' => $v['bid']))}" class="btn btn-danger"><i class="icon-trash icon-white"></i>删除</a>
                                </td>
                            </tr>
                        </foreach>
                        <tr>
                            <td colspan='6' align='center'>
                                <input type="hidden" name='table' value='brand'/>

                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <input type="submit" value='排序' class="btn btn-success" />
                </form>
            </div>
        </section>
    </div>
</div>

